//
//  VideoModel.m
//  Connotation
//
//  Created by LZXuan on 15-4-8.
//  Copyright (c) 2015年 LZXuan. All rights reserved.
//

#import "VideoModel.h"

@implementation VideoModel
- (void)dealloc {
    self.vpic_middle = nil;
    self.vpic_small = nil;
    self.vplay_url = nil;
    self.vsource_url = nil;
    
    [super dealloc];
}
/**
 *  归档
 */
-(void)encodeWithCoder:(NSCoder *)aCoder
{
    //子类要调用
    [super encodeWithCoder:aCoder];
    [aCoder encodeObject:self.vpic_middle forKey:@"vpic_middle"];
    [aCoder encodeObject:self.vpic_small forKey:@"vpic_small"];
    [aCoder encodeObject:self.vplay_url forKey:@"vplay_url"];
    [aCoder encodeObject:self.vsource_url forKey:@"vsource_url"];
    
}
/**
 *  解档
 */
-(id)initWithCoder:(NSCoder *)aCoder
{
    //
    self = [super initWithCoder:aCoder];
    if (self = [super init])
    {
        self.vpic_middle = [aCoder decodeObjectForKey:@"vpic_middle"];
        self.vpic_small = [aCoder decodeObjectForKey:@"vpic_small"];
        self.vplay_url = [aCoder decodeObjectForKey:@"vplay_url"];
        self.vsource_url = [aCoder decodeObjectForKey:@"vsource_url"];
    }
    
    return self;
}

@end
